﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GHRMS.MODEL
{
    [Serializable]
    public class RetirementInfo : RecordInfo
    {
        private int retire_seq;
        private EmployeeTypeInfo emp_type_seq;
        private int retire_year;
        private Nullable<DateTime> start_date;
        private JobSiteInfo job_site_seq;
        private string ref_no;
        private string retire_title;
        private string retire_descr;
        private Nullable<DateTime> approved_date;
        private string approved_name;
        private string approved_position;
        private MasRecordStatusInfo retire_status;
        //private string retire_status_name;

        public RetirementInfo()
        { 
        }
        public RetirementInfo(int Sequence)
        {
            this.Sequence = Sequence;
        }
        public RetirementInfo(int Sequence, EmployeeTypeInfo EmployeeType, int BGYear, Nullable<DateTime> StartDate
            , JobSiteInfo JobSite, string RefNo, string Title, string Description, Nullable<DateTime> ApprovedDate
            , string ApprovedName, string ApprovedPosition, MasRecordStatusInfo Status, string Remarks, string RecordStatus
            , Nullable<int> CreatedBy, Nullable<int> UpdatedBy)
        {
            this.Sequence = Sequence;
            this.EmployeeType = EmployeeType;
            this.BGYear = BGYear;
            this.StartDate = StartDate;
            this.JobSite = JobSite;
            this.RefNo = RefNo;
            this.Title = Title;
            this.Description = Description;
            this.ApprovedDate = ApprovedDate;
            this.ApprovedName = ApprovedName;
            this.ApprovedPosition = ApprovedPosition;
            this.Status = Status;
            this.Remarks = Remarks;
            this.RecordStatus = RecordStatus;
            this.CreatedBy = CreatedBy;
            this.UpdatedBy = UpdatedBy;
        }
        public int Sequence
        {
            get { return retire_seq; }
            set { retire_seq = value; }
        }
        public EmployeeTypeInfo EmployeeType
        {
            get { return emp_type_seq; }
            set { emp_type_seq = value; }
        }
        public int BGYear
        {
            get { return retire_year; }
            set { retire_year = value; }
        }
        public Nullable<DateTime> StartDate
        {
            get { return start_date; }
            set { start_date = value; }
        }
        public JobSiteInfo JobSite
        {
            get { return job_site_seq; }
            set { job_site_seq = value; }
        }
        public string RefNo
        {
            get { return ref_no; }
            set { ref_no = value; }
        }
        public string Title
        {
            get { return retire_title; }
            set { retire_title = value; }
        }
        public string Description
        {
            get { return retire_descr; }
            set { retire_descr = value; }
        }
        public Nullable<DateTime> ApprovedDate
        {
            get { return approved_date; }
            set { approved_date = value; }
        }
        public string ApprovedName
        {
            get { return approved_name; }
            set { approved_name = value; }
        }
        public string ApprovedPosition
        {
            get { return approved_position; }
            set { approved_position = value; }
        }
        public MasRecordStatusInfo Status
        {
            get { return retire_status; }
            set { retire_status = value; }
        }
        //public string StatusName
        //{
        //    get { return retire_status_name; }
        //    set { retire_status_name = value; }
        //}
    }
}
